POV-Ray : Newsgroups : povray.beta-test : bug in trans_spline (transforms.inc) : bug in trans_spline (transforms.inc) Server Time
29 Jul 2024 10:26:49 EDT (-0400)
  bug in trans_spline (transforms.inc)  
From: Martial
Date: 4 Jun 2002 16:04:26
Message: <3cfd1d4a$1@news.povray.org>
Sorry if this is a recursif message :)

Bug in Spline_Trans in transforms.inc ?

povwinRC5
Win98 PII 350  256 RAM

File: C:\Program Files\POV-Ray for Windows v3.5\INCLUDE\transforms.inc
Line: 183
   #local LocationPrev = <0,0,0>+Spline(Time-Foresight);
   #local Forward = vnormalize(LocationNext-Location) <----ERROR
Parse Error: Cannot normalize zero-length vector.
Returned from renderer with error status
+kff10

/**********START*******************/
#include "transforms.inc"
#declare Rad=.2;
#declare Ray=1;
#declare Object=sphere{y*(Rad+(Ray*.5)),Ray*.5 pigment{rgb <1,1,1>}}
#declare Spline1 =
      spline {
       cubic_spline
    -.25, <0,0,-1>
    0.00, <1,0,0>
    0.25, <0,0,1>
    0.50, <-1,0,0>
    0.75, <0,0,-1>
    1.00, <1,0,0>
    1.25, <0,0,1>
      }

object {Object Spline_Trans(Spline1,clock,y, 0,0)}
// bug transforms.inc  Line: 183
object {Object Spline_Trans(Spline1,clock,y, .2,.5)}
//bug  transforms.inc  Line: 234

/*********END***************/

--
Martial
http://cathemline.org
http://pov-monde.org
http://pov-wip.fr.st


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.